package com.wicket.okrcomponent.integration.dto;



import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc SchemeOpenRecordDto
 * @使用场景
 */
@Data
public class SchemeOpenRecordDto extends BaseDto implements Serializable {

    /**
     * 方案开通记录ID:
     */
    @ApiModelProperty("方案开通记录ID")
    private String schOpenRecordId;

    /**
     * 配置方案ID:
     */
    @ApiModelProperty("配置方案ID")
    private String confSchemeId;

    /**
     * 配置方案标识:
     */
    @ApiModelProperty("配置方案标识")
    private String confSchemeCode;

    /**
     * 配置方案名称:
     */
    @ApiModelProperty("配置方案名称")
    private String confSchemeName;

    /**
     * 是否必选方案:
     */
    @ApiModelProperty("是否必选方案")
    private String isMandatory;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
    /**
     * 是否初始方案:
     */
    @ApiModelProperty("是否初始方案")
    private String isInitialScheme;
    /**
     * 是否存档
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      SchemeOpenRecordDto that = (SchemeOpenRecordDto) o;
      return  schOpenRecordId == that.schOpenRecordId&&confSchemeId == that.confSchemeId&&confSchemeCode == that.confSchemeCode&&confSchemeName == that.confSchemeName&&isMandatory == that.isMandatory&&subjectLifeCycle == that.subjectLifeCycle&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&isInitialScheme == that.isInitialScheme&&isArchive == that.isArchive;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), schOpenRecordId,confSchemeId,confSchemeCode,confSchemeName,isMandatory,subjectLifeCycle,operationInductionId,operateTime,isInitialScheme,isArchive);
    }

}
